<?php 
use yii\helpers\Url;
use yii\widgets\LinkPager;
?>

<link href="/backend/css/new-business.css" rel="stylesheet">
<style>
    .tab-content{position: relative}
    .tab-content .tab-list-box{position: absolute;left: 0;top: 0;}
    #monthCon{width: 100%;height:545px; border: 1px solid #dedede;}
    #monthCon1{width: 100%;height:545px; border: 1px solid #dedede;}
</style>
<!-- 引入 echarts.js -->

        <?=$this->render('../_nav');?>

<section class="container" style="padding-top:10px;">

        <div id="myTabContent" class="tab-content">
            <!--  business noe     -->
            <div class="tab-row">

                <div class="tab-row-one">

                    <ul class="tab-left clearfix">
<!--                        <button class="<?php echo  (Yii::$app->request->get()['searchTime'] <=1) ? 'current': '';?>"><a href="cashier?action=salemap&searchTime=1">本月</a></button>
                        <button class="<?php echo  (Yii::$app->request->get()['searchTime'] ==2) ? 'current': '';?>"><a href="cashier?action=salemap&searchTime=2">本年</a></button>-->
                        <li class="active pull-left mr20"><a class="btnBgs" href="#month" data-toggle="tab">本月</a></li>
                        <li><a class="btnBgs" href="#year" data-toggle="tab">本年</a></li>
                    </ul>
                </div>
            </div>
            <!--  business tow      -->
                    <!--  business-list public   -->
            <div class="tab-content">
                <div id="month" class="tab-list-box tab-pane active">
                    <div class="title">
                        <span class="current">本月营业额</span>
                    </div>

                    <div class="list-box fr b-none current">
                        <div id="monthCon"></div>
                    </div>
                </div>

                <div id="year" class="tab-list-box tab-pane">
                    <div class="title">
                        <span class="current">本年营业额</span>
                    </div>

                    <div class="list-box fr b-none current">
                        <div id="monthCon1"></div>

                    </div>
                </div>
            </div>


            </div>
    </section>



<?php $this->registerJsFile("@web/libs/echarts/echarts.js",['position'=>$this::POS_HEAD]);?>
<?php $this->registerJsFile("@web/system/financial/statistics/salemap.js",['position'=>$this::POS_END]);?>
